package com.ruoyi.teaching.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.teaching.pojo.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;

/**
 * 节假日对象 ya_holiday
 *
 * @author ruoyi
 * @date 2025-02-21
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("ya_holiday")
public class YaHoliday
{
    private static final long serialVersionUID = 1L;

    /** 节假日ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 日期 */
    @Excel(name = "日期")
    private String date;

    /** 周几，0代表周日，1代表周一，以此类推 */
    @Excel(name = "周几，0代表周日，1代表周一，以此类推")
    @TableField
    private Integer weekday;

    /** 节假日描述 */
    @Excel(name = "节假日描述")
    private String description;

    /** 配置ID,为空 说明为手动配置 */
    @Excel(name = "配置ID,为空 说明为手动配置")
    private Long configId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDate(String date)
    {
        this.date = date;
    }

    public String getDate()
    {
        return date;
    }
    public void setWeekday(Integer weekday)
    {
        this.weekday = weekday;
    }

    public Integer getWeekday()
    {
        return weekday;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setConfigId(Long configId)
    {
        this.configId = configId;
    }

    public Long getConfigId()
    {
        return configId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("date", getDate())
            .append("weekday", getWeekday())
            .append("description", getDescription())
            .append("configId", getConfigId())
            .toString();
    }
}
